package com.duckygo.towerdefense.game.astar;

	public class AStarNode {
		
		public float g = 0;
		public float h = 0;
		public float cost = 1;

		public int x;
		
		public int y;
		
		public AStarNode parent;
		
		public boolean walkable;
		
		public AStarNode(int x, int y) {
			this(x, y, true);
		}
		
		public AStarNode(int x, int y, boolean walkable) {
			this.x = x;
			this.y = y;
			this.walkable = walkable;
		}
		
		public float getF() {
			return g + h;
		}
		
	}

